package org.example.exp3.exam2;

public class Proxy extends Picture {
   private Application realApplication = new Application();
   
   public Application application;
   
   public void preRun() {
      System.out.println("运行之前的操作");
   }
   
   public void run() {
      preRun();
      realApplication.run();
      postRun();
   }
   
   public void postRun() {
      System.out.println("运行之后的操作");
   }
}